Crate dirs[−][src]
Expand description
The dirs crate is
- a tiny library with a minimal API (18 public functions)
- that provides the platform-specific, user-accessible locations
- for finding and storing configuration, cache and other data
- on Linux, Redox, Windows (≥ Vista) and macOS.
The library provides the location of these directories by leveraging the mechanisms defined by
- the XDG base directory and the XDG user directory specifications on Linux,
- the Known Folder system on Windows, and
- the Standard Directories on macOS.
Functions
Returns the path to the user’s audio directory.
Returns the path to the user’s cache directory.
Returns the path to the user’s config directory.
Returns the path to the user’s data directory.
Returns the path to the user’s local data directory.
Returns the path to the user’s desktop directory.
Returns the path to the user’s document directory.
Returns the path to the user’s download directory.
Returns the path to the user’s executable directory.
Returns the path to the user’s font directory.
Returns the path to the user’s home directory.
Returns the path to the user’s picture directory.
Returns the path to the user’s preference directory.
Returns the path to the user’s public directory.
Returns the path to the user’s runtime directory.
Returns the path to the user’s state directory.
Returns the path to the user’s template directory.
Returns the path to the user’s video directory.